import request from "@/utils/request";

// 查询材料进度列表
export function listMaterialProgress(query) {
  return request({
    url: "/ma/materialProgress/list",
    method: "get",
    params: query
  });
}

// 查询材料进度详细
export function getMaterialProgress(progressId) {
  return request({
    url: "/ma/materialProgress/" + progressId,
    method: "get"
  });
}
// 查询材料进度详细(主子表)
export function getMaterialProgressInfoData(progressId) {
  return request({
    url: "/ma/materialProgress/infoData/" + progressId,
    method: "get"
  });
}
// 获取材料签收详情列表
export function allListMaterialProgressDetails(query) {
  return request({
    url: "/ma/materialProgressDetails/allList",
    method: "get",
    params: query
  });
}

// 新增材料进度
export function addMaterialProgress(data) {
  return request({
    url: "/ma/materialProgress",
    method: "post",
    data: data
  });
}

// 修改材料进度
export function updateMaterialProgress(data) {
  return request({
    url: "/ma/materialProgress",
    method: "put",
    data: data
  });
}

// 删除材料进度
export function delMaterialProgress(progressId) {
  return request({
    url: "/ma/materialProgress/" + progressId,
    method: "delete"
  });
}
